
#!/usr/bin/python3
# -*- coding: utf-8 -*-
'''
# @file   : Cartesian.py
# @author : weichy
# @date   : 2018/12/22
# @version: 2.0
# @desc   :  程序一直运行，知道用户选择退出。
            (1)让程序结构化
            (2)lambda函数
'''
# from turtle import *
from turtle import * 
def main():
    turtle = Turtle()
    turtle.down()
    turtle.speed(6)
    turtle.pensize(5)
    turtle.color("black","yellow")
    turtle.begin_fill()
    count =1
    while count<=6:
        turtle.forward(200)
        turtle.right(144)
        count = count + 1
    # turtle.begin_fill()
    # for i in range(5):
    #     turtle.forward(200)
    #     turtle.right(144)

if __name__ =='__main__':
    main()